package com.zcx.qshop.conn;

import org.json.JSONObject;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

@HttpInlet(Conn.INTEL_JSON_LOGIN)
public class JsonLoginAsyGet extends QSAsyGet<String> {
	
	public String mobile, password; 


	public JsonLoginAsyGet(String mobile, String password, AsyCallBack<String> asyCallBack) {

		super(asyCallBack);
		
		this.mobile = mobile;
		
		this.password = password;
		
 	} 
	
	@Override
	public String parser(JSONObject object) {
		
		if(object.optString("message").equals("1")){
			
			return object.optString("uid");
			
		}
		
 		return null;
	}

}
